department1 = 'Security'
department2 = 'Python'
depart1_m = 'cq_bomb'
depart2_m = 'qinke'

COURSE_FEES_SEC = 456789.123456
COURESE_FEES_Python = 1234.3456

# line1 ='Department1 name:%-10s Manager:%-10s COURSEFEES:%-10.2f The End!' % (department1,depart1_m,COURSE_FEES_SEC)
# line2 ='Department2 name:%-10s Manager:%-10s COURSEFEES:%-10.2f The End!' % (department2,depart2_m,COURESE_FEES_Python)

# line1 = 'Department1 name:{0:10} Manager:{1:10} COURSEFEES:{2:<10,.2f} The End!'.format(department1,depart1_m,COURSE_FEES_SEC)
# line2 = 'Department2 name:{0:10} Manager:{1:10} COURSEFEES:{2:<10,.2f} The End!'.format(department2,depart2_m,COURESE_FEES_Python)

line1 = f'Department1 name:{department1:10} Manager:{depart1_m:10} COURSEFEES:{COURSE_FEES_SEC:<10,.2f} The End!'
line2 = f'Department2 name:{department2:10} Manager:{depart2_m:10} COURSEFEES:{COURESE_FEES_Python:<10,.2f} The End!'


length = len(line1)
print('=' * length)
print(line1)
print(line2)
print('=' * length)

#Python2.7老方法里面如何添加千分位?